/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2023-01-31 15:43:23
 * @LastEditors: Andy
 * @LastEditTime: 2023-01-31 16:23:22
 */
import { Http } from '@/common/api'

// 列表
export const listUrl = '/mail/setting/page'
/**
 * 新增邮件配置
 * @param params
 * @return {*|Promise}
 */
export const apiPostAddMailSetting = async (params) => Http.post('/mail/setting/add', params)
/**
 * 编辑邮件配置
 * @param params
 * @return {*|Promise}
 */
export const apiPutEditMailSetting = async (params) => Http.put('/mail/setting/update', params)

/**
 * 删除邮件配置
 * @param params
 * @return {*|Promise}
 */
export const apiPutDeleteMailSetting = async (params) => Http.put('/mail/setting/delete', params)
/**
 * 批量启用
 * @param params
 * @return {*|Promise}
 */
export const apiPutEnableMail = async (params) => Http.put('/mail/setting/batch/enable', params)

/**
 * 批量停用
 * @param params
 * @return {*|Promise}
 */
export const apiPutDisableMail = async (params) => Http.put('mail/setting/batch/disable', params)
